package org.lanplay.server.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@Table(uniqueConstraints=@UniqueConstraint(columnNames={"user_id", "game_id"}))
public class MatchRequest extends UserGameReference {
	private static final long serialVersionUID = 1L;

	@ManyToMany(cascade=CascadeType.DETACH)
	private Set<GameModification> mod;
}
